package com.type.vo;

/**
 * 관리자용 게시판 화면 관리VO
 * @author daou-ljhjoin
 *
 */
public class AdminManageBoardVO {
	private int boardNo;
	private String boardName;
	private String adminName;
	private String registerDate;
	private String explanation;
	private String boardType;
	private String category;
	private String option;
	private String adminConstraint;
	private String writeConstraint;
	private String readConstraint;
	public AdminManageBoardVO() {
		super();
	}
	public AdminManageBoardVO(int boardNo, String boardName, String adminName,
			String registerDate, String explanation, String boardType,
			String category, String option, String adminConstraint,
			String writeConstraint, String readConstraint) {
		super();
		this.boardNo = boardNo;
		this.boardName = boardName;
		this.adminName = adminName;
		this.registerDate = registerDate;
		this.explanation = explanation;
		this.boardType = boardType;
		this.category = category;
		this.option = option;
		this.adminConstraint = adminConstraint;
		this.writeConstraint = writeConstraint;
		this.readConstraint = readConstraint;
	}
	public int getBoardNo() {
		return boardNo;
	}
	public void setBoardNo(int boardNo) {
		this.boardNo = boardNo;
	}
	public String getBoardName() {
		return boardName;
	}
	public void setBoardName(String boardName) {
		this.boardName = boardName;
	}
	public String getAdminName() {
		return adminName;
	}
	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}
	public String getRegisterDate() {
		return registerDate;
	}
	public void setRegisterDate(String registerDate) {
		this.registerDate = registerDate;
	}
	public String getExplanation() {
		return explanation;
	}
	public void setExplanation(String explanation) {
		this.explanation = explanation;
	}
	public String getBoardType() {
		return boardType;
	}
	public void setBoardType(String boardType) {
		this.boardType = boardType;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getOption() {
		return option;
	}
	public void setOption(String option) {
		this.option = option;
	}
	public String getAdminConstraint() {
		return adminConstraint;
	}
	public void setAdminConstraint(String adminConstraint) {
		this.adminConstraint = adminConstraint;
	}
	public String getWriteConstraint() {
		return writeConstraint;
	}
	public void setWriteConstraint(String writeConstraint) {
		this.writeConstraint = writeConstraint;
	}
	public String getReadConstraint() {
		return readConstraint;
	}
	public void setReadConstraint(String readConstraint) {
		this.readConstraint = readConstraint;
	}
	@Override
	public String toString() {
		return "AdminManageBoardVO [boardNo=" + boardNo + ", boardName="
				+ boardName + ", adminName=" + adminName + ", registerDate="
				+ registerDate + ", explanation=" + explanation
				+ ", boardType=" + boardType + ", category=" + category
				+ ", option=" + option + ", adminConstraint=" + adminConstraint
				+ ", writeConstraint=" + writeConstraint + ", readConstraint="
				+ readConstraint + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((adminConstraint == null) ? 0 : adminConstraint.hashCode());
		result = prime * result
				+ ((adminName == null) ? 0 : adminName.hashCode());
		result = prime * result
				+ ((boardName == null) ? 0 : boardName.hashCode());
		result = prime * result + boardNo;
		result = prime * result
				+ ((boardType == null) ? 0 : boardType.hashCode());
		result = prime * result
				+ ((category == null) ? 0 : category.hashCode());
		result = prime * result
				+ ((explanation == null) ? 0 : explanation.hashCode());
		result = prime * result + ((option == null) ? 0 : option.hashCode());
		result = prime * result
				+ ((readConstraint == null) ? 0 : readConstraint.hashCode());
		result = prime * result
				+ ((registerDate == null) ? 0 : registerDate.hashCode());
		result = prime * result
				+ ((writeConstraint == null) ? 0 : writeConstraint.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AdminManageBoardVO other = (AdminManageBoardVO) obj;
		if (adminConstraint == null) {
			if (other.adminConstraint != null)
				return false;
		} else if (!adminConstraint.equals(other.adminConstraint))
			return false;
		if (adminName == null) {
			if (other.adminName != null)
				return false;
		} else if (!adminName.equals(other.adminName))
			return false;
		if (boardName == null) {
			if (other.boardName != null)
				return false;
		} else if (!boardName.equals(other.boardName))
			return false;
		if (boardNo != other.boardNo)
			return false;
		if (boardType == null) {
			if (other.boardType != null)
				return false;
		} else if (!boardType.equals(other.boardType))
			return false;
		if (category == null) {
			if (other.category != null)
				return false;
		} else if (!category.equals(other.category))
			return false;
		if (explanation == null) {
			if (other.explanation != null)
				return false;
		} else if (!explanation.equals(other.explanation))
			return false;
		if (option == null) {
			if (other.option != null)
				return false;
		} else if (!option.equals(other.option))
			return false;
		if (readConstraint == null) {
			if (other.readConstraint != null)
				return false;
		} else if (!readConstraint.equals(other.readConstraint))
			return false;
		if (registerDate == null) {
			if (other.registerDate != null)
				return false;
		} else if (!registerDate.equals(other.registerDate))
			return false;
		if (writeConstraint == null) {
			if (other.writeConstraint != null)
				return false;
		} else if (!writeConstraint.equals(other.writeConstraint))
			return false;
		return true;
	}
	
}
